package com.wm.service;

import java.util.List;

import com.wm.bean.ApplyRestaurant;
import com.wm.bean.User;
import com.wm.bean.UserComment;
import com.wm.service.web.PageList;
import com.wm.service.web.Pages;

/**
 * @author yangbo
 *
 * 2012-12-26
 */
public interface ApplyRestaurantService {
	
	/**
	 * 保存ApplyRestaurant对象
	 * 
	 * @param ar
	 * 			ApplyRestaurant
	 * @return  ApplyRestaurant
	 * 			ApplyRestaurant
	 */
	public ApplyRestaurant saveApplyRestaurant(ApplyRestaurant ar);
	
	/**
	 * 更新ApplyRestaurant对象
	 * 
	 * @param ar
	 * 			ApplyRestaurant
	 * @return  ApplyRestaurant
	 * 			ApplyRestaurant
	 */
	public ApplyRestaurant updateApplyRestaurant(ApplyRestaurant ar);
	
	/**
	 * 根据ID删除ApplyRestaurant对象
	 * 
	 * @param id
	 * 			long
	 */
	public void removeApplyRestaurantById(long id);
	
	/**
	 * 根据ID获取ApplyRestaurant对象
	 * 
	 * @param id
	 * 			long
	 * @return  ApplyRestaurant
	 * 			ApplyRestaurant
	 */
	public ApplyRestaurant findApplyRestaurantById(long id);
	
	/**
	 * 获取ApplyRestaurant对象列表
	 * 
	 * @param applyType
	 * 			int
	 * @param orderby
	 *            String
	 * @param ascOrDesc
	 *            int
	 * @param pages
	 * 			  Pages
	 * @return PageList
	 * 			ApplyRestaurant对象列表
	 */
	public PageList findApplyRestaurants(int applyType,String orderby, int ascOrDesc,Pages pages);
	
}
